﻿using UnityEngine;
using System.Collections;

public class MovimentacaoPlayer : MonoBehaviour
{


	void Update () 
	{
		Movement();
	}

	void Movement()
	{
		if(Input.GetKey(KeyCode.RightArrow))
		{
			transform.Translate(Vector2.right * 3.5f * Time.deltaTime);
		}

		if(Input.GetKey(KeyCode.LeftArrow))
		{
			transform.Translate(Vector2.right * -3.5f * Time.deltaTime);
		}

	}
}
